package com.handpay.zztong.hp.bean;

/**
 * @author sxshi on 2016/7/15.
 * @email:emotiona_xiaoshi@126.com
 * @describe:用來解析支付方式
 */
public class TradeType {
    public TradeType() {
    }

    public TradeType(int isOpen, int tradeType) {
        this.isOpen = isOpen;
        this.tradeType = tradeType;
    }

    private int isOpen;//是否打开 1:打开 0：关闭

    private int tradeType;//支付方式 1：刷卡支付 2：支付宝支付 3：微信支付 4：微信正扫

    public boolean getIsOpen() {
        return isOpen == 1 ? true : false;
    }

    public void setIsOpen(int isOpen) {
        this.isOpen = isOpen;
    }

    public int getTradeType() {
        return tradeType;
    }

    public void setTradeType(int tradeType) {
        this.tradeType = tradeType;
    }

    @Override
    public String toString() {
        return "TradeType{" +
                "isOpen=" + isOpen +
                ", tradeType=" + tradeType +
                '}';
    }
}
